/*
 * #%L
 * SwiftUICommonUtilities
 * $Id:$
 * $HeadURL:$
 * %%
 * Copyright (C) 2011 - 2012 Linkwithweb
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the 
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public 
 * License along with this program.  If not, see
 * <http://www.gnu.org/licenses/gpl-3.0.html>.
 * #L%
 */
/**
 * 
 */
package com.linkwithweb.products.swiftui.context;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author ashwin kumar
 * 
 */
public class ExcelTab {
	private String tableName = "";
	private String schemaName = "";
	private String primaryKeyColumn = "";
	private int frozenColumnCount = 1;
	private String tabType = TabTypes.DATA_TAB;

	/**
	 * @author ashwin kumar
	 * 
	 */
	public interface TabTypes {
		// Tab which holds Data to be loaded
		String DATA_TAB = "DATA_TAB";
		// Tab which holds Lov Data and not actual Data
		String LOV_TAB = "LOV_TAB";
	}

	private List<String> columnNames = new ArrayList<String>();
	private List<String> columnTypes = new ArrayList<String>();
	private List<String> columnConstrints = new ArrayList<String>();
	private List<String> columnGroupNames = new ArrayList<String>();
	private Map<String, List<String>> lovValuesMapping = new HashMap<String, List<String>>();

	/**
	 * @return the tableName
	 */
	public String getTableName() {
		return tableName;
	}

	/**
	 * @param tableName
	 *            the tableName to set
	 */
	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	/**
	 * @return the schemaName
	 */
	public String getSchemaName() {
		return schemaName;
	}

	/**
	 * @param schemaName
	 *            the schemaName to set
	 */
	public void setSchemaName(String schemaName) {
		this.schemaName = schemaName;
	}

	/**
	 * @return the primaryKeyColumn
	 */
	public String getPrimaryKeyColumn() {
		return primaryKeyColumn;
	}

	/**
	 * @param primaryKeyColumn
	 *            the primaryKeyColumn to set
	 */
	public void setPrimaryKeyColumn(String primaryKeyColumn) {
		this.primaryKeyColumn = primaryKeyColumn;
	}

	/**
	 * @return the columnNames
	 */
	public List<String> getColumnNames() {
		return columnNames;
	}

	/**
	 * @param columnNames
	 *            the columnNames to set
	 */
	public void setColumnNames(List<String> columnNames) {
		this.columnNames = columnNames;
	}

	/**
	 * @return the columnTypes
	 */
	public List<String> getColumnTypes() {
		return columnTypes;
	}

	/**
	 * @param columnTypes
	 *            the columnTypes to set
	 */
	public void setColumnTypes(List<String> columnTypes) {
		this.columnTypes = columnTypes;
	}

	/**
	 * @return the tabType
	 */
	public String getTabType() {
		return tabType;
	}

	/**
	 * @param tabType
	 *            the tabType to set
	 */
	public void setTabType(String tabType) {
		this.tabType = tabType;
	}

	/**
	 * @return the columnGroupNames
	 */
	public List<String> getColumnGroupNames() {
		return columnGroupNames;
	}

	/**
	 * @param columnGroupNames
	 *            the columnGroupNames to set
	 */
	public void setColumnGroupNames(List<String> columnGroupNames) {
		this.columnGroupNames = columnGroupNames;
	}

	/**
	 * @return the frozenColumnCount
	 */
	public int getFrozenColumnCount() {
		return frozenColumnCount;
	}

	/**
	 * @param frozenColumnCount
	 *            the frozenColumnCount to set
	 */
	public void setFrozenColumnCount(int frozenColumnCount) {
		this.frozenColumnCount = frozenColumnCount;
	}

	/**
	 * @return the lovValuesMapping
	 */
	public Map<String, List<String>> getLovValuesMapping() {
		return lovValuesMapping;
	}

	/**
	 * @param lovValuesMapping
	 *            the lovValuesMapping to set
	 */
	public void setLovValuesMapping(Map<String, List<String>> lovValuesMapping) {
		this.lovValuesMapping = lovValuesMapping;
	}

	/**
	 * @return the columnConstrints
	 */
	public List<String> getColumnConstrints() {
		return columnConstrints;
	}

	/**
	 * @param columnConstrints the columnConstrints to set
	 */
	public void setColumnConstrints(List<String> columnConstrints) {
		this.columnConstrints = columnConstrints;
	}

	
}
